//   
//   UIView+Extensions.swift
//   BaseComponetKit
//   Created  by monkey on 2024/4/3
//   
//   

import UIKit
   
extension UIView {
    func addBorderRecursively() {
        layer.borderWidth = 1.0
        layer.borderColor = UIColor.red.cgColor
        for subview in subviews {
            subview.addBorderRecursively()
        }
    }
}
